package com.hy.entity.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class HyProperty {

  @ExcelProperty(value = "资产ID",index = 0)
  @TableId(type = IdType.NONE)
  private Integer propertyId;
  @ExcelIgnore
  private Integer unitId;
  @ExcelProperty(value = "资产RFID",index = 2)
  private Integer propertyRfid;
  @ExcelProperty(value = "资产固定编码" ,index = 3)
  private String propertyCode;
  @ExcelProperty(value = "资产名称" ,index = 4)
  @ColumnWidth(15)
  private String propertyName;
  @ExcelProperty(value = "规格型号" ,index = 5)
  private String propertySpecification;
  @ExcelIgnore
  private Integer outProperty;
  @ExcelIgnore
  private Integer propertyTypeId;
  @ExcelIgnore
  private Integer placeId;
  @ExcelIgnore
  private Integer managerId;
  @ExcelIgnore
  private Integer ownerId;
  @ExcelIgnore
  private Integer managerDeptId;
  @ExcelIgnore
  private Integer ownerDeptId;
  @ExcelIgnore
  private Byte propertyState;
  @TableLogic
  @ExcelIgnore
  private Integer del;
  @ExcelProperty(value = "创建时间" ,index = 21)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ColumnWidth(25)
  private String createDate;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ExcelProperty(value = "修改时间",index = 22)
  @ColumnWidth(25)
  private String updateDate;
  @ExcelProperty(value = "EPC",index = 15)
  @ColumnWidth(25)
  private String epc;
  @ExcelProperty(value = "供应商",index = 14)
  private String supplier;//供应商
  @ExcelProperty(value = "品牌" ,index = 16)
  private String brand;//品牌
  @ExcelProperty(value = "取得方式",index = 17)
  private String gainMethod;//取得方式
  @ExcelProperty(value = "取得日期",index =19 )
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private String gainDate;//取得日期
  @ExcelProperty(value = "入账日期",index = 20)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private String enterDate;//入账日期
  @ExcelProperty(value = "凭证号",index = 18)
  private String voucher;//凭证号
  @ExcelProperty("记账日期")
  private String accountDate;//记账日期
  @ExcelProperty("原值(元)")
  private String originValue;//原值


}
